package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.io.*;
import java.util.*;

public final class index_005fuser_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error/errorpage.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write('\n');

	if(session.getAttribute("usuario") == null){
		throw new IllegalArgumentException("Oye! No intentes acceder a esta pagina sin haberte logueado antes.<br/>"+ 
		"Si ya te logueaste es posible que tu sesion haya expirado; en ese caso, vuelve a introducir tu usuario y contrase&ntilde;a"
		+".<br>Haz click <a href='index.jsp'>aqu&iacute;</a>");
	}
	if(!session.getAttribute("es_admin").equals(new Integer(0))) {
		throw new IllegalArgumentException("No tienes permiso para acceder a esta pagina.");
	}

      out.write("\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
      out.write("<!-- VALIDADO!! :-D -->\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("\n");
      out.write("<head>\n");
      out.write("\n");
      out.write("<!-- Meta Data -->\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n");
      out.write("<meta name=\"description\" content=\"Short description of your site here.\" />\n");
      out.write("<meta name=\"keywords\" content=\"keywords, go, here, seperated, by, commas\" />\n");
      out.write("<script src =\"ajax/scriptaculous-js-1.8.1/lib/prototype.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<script src =\"ajax/scriptaculous-js-1.8.1/src/effects.js\" type=\"text/javascript\" charset=\"utf-8\"></script>  \n");
      out.write(" <script src=\"ajax/ajax_login.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write(" <script src=\"ajax/ajax_utils.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write(" \n");
      out.write("<script src=\"js/menu.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<!-- Site Title -->\n");
      out.write("<title>Erasmus Help!</title>\n");
      out.write("<!--[if IE]> <link href=\"estilos/style_ie.css\" rel=\"stylesheet\" type=\"text/css\"> <![endif]-->\n");
      out.write("\n");
      out.write("<!-- Link to Style External Sheet -->\n");
      out.write("<link href=\"estilos/style.css\" type=\"text/css\" rel=\"stylesheet\" />\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body onload=\"ocultaSubMenu()\">\n");
      out.write("\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "hidden.jsp", out, false);
      out.write("\n");
      out.write("<div id='page_wrapper'>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "cabecera.jsp", out, false);
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "menu_user.jsp", out, false);
      out.write("\n");
      out.write("<div id='content_wrapper'>\n");
      out.write("<div class='spacer'></div> \n");
      out.write("<div id='contenido'>\n");
      out.write("\n");
      out.write("\t<h3>&iexcl;&iexcl;Bienvenido ");
      out.print(session.getAttribute("nombre_usuario"));
      out.write("!!</h3>\n");
      out.write("\t\t\n");
      out.write("\t\t<p>Hoy es: ");
      out.print( new Date(session.getLastAccessedTime()) );
      out.write("<br/>\n");
      out.write("\t\tEn esta seccion puedes crear y consultar tus lugares favoritos as&iacute; como modificar tus datos personales cuando lo desees.<br/>\n");
      out.write("\t\tDisfruta de Erasmus Help!</p>\n");
      out.write("\t</div>\n");
      out.write("\n");
      out.write("\t<div class='spacer'></div>\n");
      out.write("\n");
      out.write("</div>\n");
      out.write("\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "pie.html", out, false);
      out.write("\n");
      out.write("\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("\n");
      out.write("</html>\n");
      out.write("\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
